﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Chbl.Models;

namespace Chbl.Controllers
{
    public class PhotoAlbumController : Controller
    {
        public ActionResult GetPhotoView()
        {
            var gallery = new Gallery(User.Identity);
            ViewBag.Url = gallery.PhotoGalleryUrl; 
            return View("Index");
        }

        public ActionResult GetFilesView()
        {
            var gallery = new Gallery(User.Identity);
            ViewBag.Url = gallery.FilesGalleryUrl; 
            return View("Index");
        }

        public ActionResult GetAlbumView(int albumId)
        {
            var gallery = new Gallery(User.Identity);
            ViewBag.Url = gallery.GetUrl(albumId);
            return View("Index");
        }


    }
}
